﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Ins_Quan : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Ins_Quan", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Ins_Quan", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Ins_Quan", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Ins_Quan", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Ins_Quan", "No");

        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } }
        private string _Plant="K15P";
        public static FieldInfo plant = new FieldInfo("mdc_Ins_Quan", "Plant");

        [Column]
        public string Valid_From { get { return _Valid_From; } set { _Valid_From = value; EntityState.FieldChange("Valid_From"); } }
        private string _Valid_From;
        public static FieldInfo valid_from = new FieldInfo("mdc_Ins_Quan", "Valid_From");

        [Column]
        public string Characteristic_Code { get { return _Characteristic_Code; } set { _Characteristic_Code = value; EntityState.FieldChange("Characteristic_Code"); } }
        private string _Characteristic_Code;
        public static FieldInfo characteristic_code = new FieldInfo("mdc_Ins_Quan", "Characteristic_Code");

        [Column]
        public string Type { get { return _Type; } set { _Type = value; EntityState.FieldChange("Type"); } }
        private string _Type;
        public static FieldInfo type = new FieldInfo("mdc_Ins_Quan", "Type");

        [Column]
        public string Short_Text { get { return _Short_Text; } set { _Short_Text = value; EntityState.FieldChange("Short_Text"); } }
        private string _Short_Text;
        public static FieldInfo short_text = new FieldInfo("mdc_Ins_Quan", "Short_Text");

        [Column]
        public string Description_ZH { get { return _Description_ZH; } set { _Description_ZH = value; EntityState.FieldChange("Description_ZH"); } }
        private string _Description_ZH;
        public static FieldInfo description_zh = new FieldInfo("mdc_Ins_Quan", "Description_ZH");

        [Column]
        public string Search_Field { get { return _Search_Field; } set { _Search_Field = value; EntityState.FieldChange("Search_Field"); } }
        private string _Search_Field;
        public static FieldInfo search_field = new FieldInfo("mdc_Ins_Quan", "Search_Field");

        [Column]
        public string InfoField_3 { get { return _InfoField_3; } set { _InfoField_3 = value; EntityState.FieldChange("InfoField_3"); } }
        private string _InfoField_3;
        public static FieldInfo infofield_3 = new FieldInfo("mdc_Ins_Quan", "InfoField_3");

        [Column]
        public string Decimal_Places { get { return _Decimal_Places; } set { _Decimal_Places = value; EntityState.FieldChange("Decimal_Places"); } }
        private string _Decimal_Places;
        public static FieldInfo decimal_places = new FieldInfo("mdc_Ins_Quan", "Decimal_Places");

        [Column]
        public string Msmt_Unit { get { return _Msmt_Unit; } set { _Msmt_Unit = value; EntityState.FieldChange("Msmt_Unit"); } }
        private string _Msmt_Unit;
        public static FieldInfo msmt_unit = new FieldInfo("mdc_Ins_Quan", "Msmt_Unit");

        [Column]
        public string Lower_Spec_Lmt { get { return _Lower_Spec_Lmt; } set { _Lower_Spec_Lmt = value; EntityState.FieldChange("Lower_Spec_Lmt"); } }
        private string _Lower_Spec_Lmt;
        public static FieldInfo lower_spec_lmt = new FieldInfo("mdc_Ins_Quan", "Lower_Spec_Lmt");

        [Column]
        public string Upper_Limit { get { return _Upper_Limit; } set { _Upper_Limit = value; EntityState.FieldChange("Upper_Limit"); } }
        private string _Upper_Limit;
        public static FieldInfo upper_limit = new FieldInfo("mdc_Ins_Quan", "Upper_Limit");

        [Column]
        public string Target_Value { get { return _Target_Value; } set { _Target_Value = value; EntityState.FieldChange("Target_Value"); } }
        private string _Target_Value;
        public static FieldInfo target_value = new FieldInfo("mdc_Ins_Quan", "Target_Value");

        [Column]
        public string InsQuan_Status { get { return _InsQuan_Status; } set { _InsQuan_Status = value; EntityState.FieldChange("InsQuan_Status"); } }
        private string _InsQuan_Status = "2, Released";
        public static FieldInfo insquan_status = new FieldInfo("mdc_Ins_Quan", "InsQuan_Status");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Ins_Quan", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Ins_Quan", "Status");
    }
}
